package Facade;

/**
 * @ProjectName: 23种设计模式
 * @Package: Facade
 * @ClassName: Facade
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/13 16:50
 * @Version: 1.0
 */
public class Facade {
    private SystemA systemA;
    private SystemB systemB;
    private SystemC systemC;

    public Facade() {
        systemA = new SystemA();
        systemB = new SystemB();
        systemC = new SystemC();
    }
    //将需要的方法集合在一起
    public void doSomething() {
        this.systemA.doSomething();
        this.systemB.doSomething();
        this.systemC.doSomething();
    }
}
